package com.itheima.service;

import com.itheima.dao.impl.StudentImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StudentService {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-day01/src/main/resources/appliction-test.xml");
        StudentImpl studentMethod = (StudentImpl) context.getBean("studentMethod");
        studentMethod.findAll();
    }
}
